#!/usr/bin/python3
# -*- coding: utf-8 -*-

"""
# @version: v1.0
# @author : cd
# @Email : 19688513@qq.com
# @Project : new-horizons-engine
# @File : email_config.py.py
# @Software: PyCharm
# @time: 2025/6/4 11:58
# @description : 定义 SMTP 配置
"""

import urllib3
import logging

# 配置日志
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# 禁用不安全的请求警告
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)



EMAIL_CONFIG = {
    'SMTP_SERVER': 'smtp.qq.com',
    'SMTP_PORT': 465,
    'USERNAME': '3348004369@qq.com',
    'PASSWORD': 'ygsdrzbmtcswdbbj'
}

# 收件人分组配置
RECIPIENT_GROUPS = [
    ['19688513@qq.com', '401252058@qq.com', '624505116@qq.com'],  # 第一组收件人
    ['286196043@qq.com', '354531800@qq.com']  # 第二组收件人
]

# 错误报告收件人（通常是管理员）
ERROR_RECIPIENTS = ['19688513@qq.com']  # 错误报告发送给管理员